import request from '@/utils/request'

export function toGetWeChatPublicList(query) {
  return request({
    url: '/adminMajor/weChatPublic/toGetList',
    method: 'post',
    params: query
  })
}

export function toGetCompanyInfo(id) {
  return request({
    url: '/adminMajor/weChatPublic/getCompanyInfo/' + id,
    method: 'get'
  })
}

export function toGetThemeList() {
  return request({
    url: '/adminMajor/weChatPublic/getThemeList',
    method: 'get'
  })
}

export function toSaveCompany(data) {
  return request({
    url: '/adminMajor/weChatPublic/toSaveCompany',
    method: 'post',
    data
  })
}

export function toMakeSure(data) {
  return request({
    url: '/adminMajor/weChatPublic/toMakeSure',
    method: 'post',
    data
  })
}

export function toUpdatePwd(data) {
  return request({
    url: '/adminMajor/weChatPublic/toUpdatePwd',
    method: 'post',
    data
  })
}

export function toSearchSms(companyId) {
  return request({
    url: '/adminMajor/weChatPublic/toSearchSms/' + companyId,
    method: 'get'
  })
}
